<?php

//define('SUB_PATH', 'niulai');
define('DOMAIN', 'http://106.14.189.153');
return array(
    //'配置项'=>'配置值'
    //站点配置信息
    'system_title'      => '网站后台管理系统',

    //数据库配置信息
    'DB_TYPE'    => 'mysqli',      //数据库类型
    'DB_HOST'    => '106.14.189.153',  //服务器地址
    'DB_NAME'    => 'agency',      //数据库名称
    'DB_USER'    => 'root',       //数据库用户名
    'DB_PWD'     => 'tkwTK2859877',       //数据库密码
    'DB_PORT'    => '3306',       //数据库端口
    'DB_CHARSET' => 'utf8',       //字符集
    'DB_PREFIX'  => 'agency_',       //数据库调试模式,开启后可以记录SQL日志
        //数据库表前缀
    'SESSION_AUTO_START' => true,
    'SHOW_PAGE_TRACE' =>false,
    'LOG_RECORD' => false,    // 关闭日志记录  在config里面加上这个配置

    'DB_DEBUG'   =>  TRUE,
    'DB_PATH_NAME'=> 'Data',        //备份目录名称,主要是为了创建备份目录
    'DB_PATH'     => './Data/',     //数据库备份路径必须以 / 结尾；
    'DB_PART'     => '20971520',  //该值用于限制压缩后的分卷最大长度。单位：B；建议设置20M
    'DB_COMPRESS' => '1',         //压缩备份文件需要PHP环境支持gzopen,gzwrite函数        0:不压缩 1:启用压缩
    'DB_LEVEL'    => '9',         //压缩级别   1:普通   4:一般   9:最高


//    'AUTH_CONFIG' => array(
//        'AUTH_ON' => true, //认证开关
//        'AUTH_TYPE' => 1, // 认证方式，1为时时认证；2为登录认证。
//        'AUTH_GROUP' => 'union_group', //用户组数据表名
//        'AUTH_GROUP_ACCESS' => 'union_access', //用户组明细表
//        'AUTH_RULE' => 'union_rule', //权限规则表
//        'AUTH_USER' => 'union_admin'//用户信息表
//    ),

     'SESSIONUSER' => "user.userid",

     /** 配置网站的域名 */
    'domain' => DOMAIN,
    // 短信相关设置
//    'message' => array(
//        'switch' => true, // true: 开启短信功能 false: 关闭短信功能
//        'sendMsgUrl' =>'http://115.29.242.32:8888/sms.aspx',
//        'userid' => 1952,
//        'expire' => 2, // 验证码失效时间
//        'account' => 'dshy',
//        'password' => 'dshy2859877',
//        'content_tpl' => '【】（CHECKCODE）该验证码EXPIRE分钟内有效，请尽快完成验证'
//    ),

    'DEFAULT_FILTER' => 'htmlspecialchars,trim',
    'img' => array('exts' => array('jpg', 'gif', 'png', 'jpeg'), 'maxSize' => 3145728, 'rootPath' => '/Uploads/'),

    // 短信相关设置
    'message' => array(
        'switch' => false, // true: 开启短信功能 false: 关闭短信功能
        'sendMsgUrl' =>'http://115.29.242.32:8888/sms.aspx',
        'userid' => 1952,
        'expire' => 1.5, // 验证码失效时间
        'account' => 'dshy',
        'password' => 'dshy2859877',
        'content_tpl' => '【正见】（CHECKCODE）该验证码EXPIRE分钟内有效，请尽快完成验证。'
    ),
	'rongcloud' => array(
		'appKey' => 'bmdehs6pb1rbs',
		'appSecret' => '8NgHNYfdTJoo',
		'getTokenURL' => 'https://api.cn.rong.io/user/getToken',
		'freshUrlProfile' => 'https://api.cn.rong.io/user/refresh',
		'checkOnline' => 'http://api.cn.ronghub.com/user/checkOnline',
		'block' => 'http://api.cn.ronghub.com/user/block.json',
		'unblock' => 'http://api.cn.ronghub.com/user/unblock.json',
		'addBlacklist' => 'http://api.cn.ronghub.com/user/blacklist/add',
		'removeBlacklist' => 'http://api.cn.ronghub.com/user/blacklist/remove',
		'queryBlacklist' => 'http://api.cn.ronghub.com/user/blacklist/query',
		'pushMsg' => 'http://api.cn.ronghub.com/message/system/publish',
		'blocklist' => 'http://api.cn.ronghub.com/user/block/query.json',
        'createroom'=>'http://api.cn.ronghub.com/chatroom/create.json',     //创建聊天室
        'query'=>'http://api.cn.ronghub.com/chatroom/query.json',           //查询聊天室信息
        'destroy'=>'http://api.cn.ronghub.com/chatroom/destroy.json',       //销毁聊天室
        'user'=>'http://api.cn.ronghub.com/chatroom/user/query.json',       //查询聊天室内用户
        'exist'=>'http://api.cn.ronghub.com/chatroom/user/exist.json',       //查询用户是否在聊天室
        'message'=>'http://api.cn.ronghub.com/message/chatroom/publish.json',       //发送聊天室消息
        // 'user'=>'http://api.cn.ronghub.com/chatroom/user/query.json',       //查询聊天室内用户方法
	),

    'Alipay'=>array(                        // 支付宝配置
        'alipay_gateway'=>'https://openapi.alipay.com/gateway.do',
        'alipay_gatewayUrl'=>'http://117.48.211.63/index.php/Home/alipay',           //回掉地址
        'alipay_appId'=>'2017091608771432',                 //商户id
        'alipay_encryptKey'=>'7A16znOnUY+SXTbx7afsgQ==',
        'alipay_rsaPrivateKey'=>'MIIEogIBAAKCAQEAq/vu8BjaHX8XDuAzVN+/zDH8c5ftWHQNpxgPe9YugfUh7MtVnMmMfGkLdXXjDZXXY+a4jrxW8VvIZESsJ1COJ8fi6SV/wV59abEAeo4xsEXEJ8AM5D29os4nMiGlNAz25K3IpQvjZzb1Zp4Wcz2554o4Mmt0Fka3UalrKN1sSKwB+iGS2yr36cMCi6yqVjuLhTOFmhNEA6gxjhDHDQoP5S38/4UjsYcM7uSAQ4RTd4w/zO0gOFNBDGGCm8loU4dXYFcPQ/07QhOcM/P3cVMY5vwrcREq5/jGGXmUBCzVsRCQevBhtXf159prts4NcKPnOsh74+gZndaV8stF3iosfwIDAQABAoIBACTu838INz8CXfdJ2nwtmMjHK0m/pK7MLWpm1lxnwJEUDXcGq5oCBnNpM5bD/ECcnybLE3NDqwAmD8DIppfCyuRsHqSm8uqZ2iDqbAnlo3IRaXCH47zYLXNbBjvT0eB9sD+numEHToyJ1uV0qamR5ex9WFgrj0CBazjUQzkBZBGu1Etkhx7ohPu7hzGPH/IIi+E+nmvOqh4KIBLkdRSuuIQgimjEXnfC0T0F90grgA4BDkGx5PrOQvTdP+0aMMZYHLAG2UkVq9cDhCwTJcyGY96ulrbY4Ka7cxK9wH/3molROZxzIPxEyKmQWWgTvw9RUkv4+19vBe1o5sq3xLLbKyECgYEA43daPfeVLqwqtZhrzdDJmsnqAL2CfMMZNai1kk2fI61A74phCl5Kn+DaYO/pIvm+tZckdY2hxIgvF5EspydIYSkB6tjzlGsszhpBjfDEpdxEsK+TqlcLQRg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N64OIz8qRmlOSK+uoHKyl39vHXsqfAKf46yDobfDtsh3CfhVSw5IcEr+CPVispdCo+v2y3sa1zctEENT/SrykTd5QIDAQAB',
    ),

    'YouMeng'=>array(
        'And_appkey'=>'59b642458630f56e17000c96',
        'And_timestamp'=>'flaubhrdyoqfd42lmp9t6vdfrrxn1omz',
        'IOS_appkey'=>'59b6421ccae7e75163000fdf',
        'IOS_timestamp'=>'rxn2aks1sqcg6fprmlixxfmd4zgnw491'
    )





);